package com.pan.download4.search;

import java.util.Scanner;

public class SearchApplication {

    public static void main(String[] args) {
        SearchDriver searchDriver = new SearchDriver();
        String content = "";
        Scanner scanner = new Scanner(System.in);
        System.out.println(
                "==============================\n" +
                        "搜素\n" +
                        "1.直接输入要搜素的内容回车即可搜素\n" +
                        "2.搜素的时候悠着点\n" +
                        "3.退出请输入quit\n" +
                "==============================\n"
        );
        while (true){
            System.out.print("请输入搜素内容:");
            content = scanner.nextLine();
            if (content.equals("quit")){
                System.out.println("退出程序");
                searchDriver.close();
                break;
            } else {
                searchDriver.find(content);
            }
        }
    }
}
